package net.xju3_4.service.impl;

import net.xju3_4.dao.LoginRegisterDao;
import net.xju3_4.entity.LoginRegisterEntity;
import net.xju3_4.service.LoginRegisterService;

public class LoginRegisterServiceImpl implements LoginRegisterService {

    LoginRegisterDao userDao = new LoginRegisterDao();

    @Override
    public LoginRegisterEntity login(String username, String password, String role) {
        return userDao.login(username, password, role);
    }

    @Override
    public boolean insert(LoginRegisterEntity user) {
        return userDao.insert(user);
    }

}
